package cn.bby.query.base.exception;

import cn.bby.jtk.base.exception.ServiceException;
import cn.bby.query.base.constant.AdvQueryErrorCode;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * @author ben
 * @since 2025/4/15 23:08
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class AdvQueryLoadException extends ServiceException {
    private static final long serialVersionUID = -8802538502627591189L;

    public AdvQueryLoadException(String msg) {
        super(AdvQueryErrorCode.DATA_LOAD_ERROR, msg);
    }

    public AdvQueryLoadException(String msg, Object... args) {
        super(AdvQueryErrorCode.DATA_LOAD_ERROR, String.format(msg, args));
    }

    public AdvQueryLoadException(String msg, Throwable cause) {
        super(AdvQueryErrorCode.DATA_LOAD_ERROR, msg, cause);
    }
}
